home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12090 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.join.ad.jp!wnoc-tyo-news!spinnews!spin-hsd0-tky!inet-tsb!tis2!ssel-news!usenet
  2. From: Christian Sonntag <sonntag@ssel.toshiba.co.jp>
  3. Newsgroups: comp.lang.c++
  4. Subject: Question about STL/Hash
  5. Date: Mon, 18 Mar 1996 16:12:25 +1100
  6. Organization: Systems & Software Engineering Laboratory, TOSHIBA Corporation, JAPAN
  7. Message-ID: <314CF0B9.13F9@ssel.toshiba.co.jp>
  8. NNTP-Posting-Host: chrome.ssel.toshiba.co.jp
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (WinNT; I)
  13. Content-Disposition: inline; filename="hash.quest"
  14.  
  15. I am trying to compile the hash implementation of STl by musser et.al. with VC++4.0,
  16.  
  17. However, trying to do a simple thing like that:
  18.  
  19.  
  20. hash_map<int,int, hash_fun1 , equal_to<int> > hss;
  21.  
  22.  
  23.  
  24. I get following error message(s):
  25.  
  26. e:\msdev\stl\slist.h(159) : error C2512: 'pair<int,int>::pair<int,int>' : no appropriate default constructor available
  27. e:\msdev\stl\slist.h(226) : error C2512: 'pair<int,int>::pair<int,int>' : no appropriate default constructor available
  28. e:\msdev\stl\deque.h(305) : error C2065: 'bucket' : undeclared identifier
  29. e:\msdev\stl\deque.h(305) : error C2064: term does not evaluate to a function
  30.  
  31.  
  32.   I included all the headers:
  33.     #include "pair.h"
  34.     #include "hashmap.h"
  35.     #include "hashfun.h"
  36.  
  37.   And seem to find no expalnation for this abstract behaviour.
  38.  
  39. Did anyone succesful mananage the compilation of hash1.c from the examples or some
  40. kind of hashed conatainer?
  41.  
  42. TIA
  43. Christian
  44.  
  45.  
  46.